package com.yhy;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import spring.SpringContainerMain;


/**
 * Created by yhy on 17-7-11.
 */
public class NettySetverMain {
    private static final Logger LOGGER = LoggerFactory.getLogger(NettySetverMain.class);

    /**
     * ////////////////////////主函数////////////////////////////
     */
    public static void main(String[] args) {

        try {
            final SpringContainerMain springContainer = new SpringContainerMain();
            springContainer.start("spring-application.xml");
            springContainer.waitTerminalSignal();
            springContainer.stop();
        } catch (Exception e) {
            e.printStackTrace();
            LOGGER.error("{}", e);
        }
    }

}
